//
//  ChatTableView.h
//  NewChat
//
//  Created by boleguigu_dev1 on 16/5/13.
//  Copyright © 2016年 宁波伯乐硅谷网络科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "DBMessage+CoreDataClass.h"
#import "ChatTableViewCell.h"
@protocol ChatTableViewDelegate <NSObject>
-(void)tableViewDidDrag;
-(void)tableViewDidEndDecelerating:(UIScrollView*)scrollView;
-(void)didResendMessage:(DBMessage *)message chatTabelViewCell:(ChatTableViewCell *)cell;
-(void)MapViewDidSelect:(DBMessage *)message;

-(void)loginImageViewDidTap;
-(void)targetImageViewDidTap;
@end

@interface ChatTableView : UITableView
@property (nonatomic,strong)NSMutableArray *list;
@property(nonatomic,weak)id<ChatTableViewDelegate>chatTableViewdelegate;

@property(strong, nonatomic) AVAudioPlayer *player;
@property(strong, nonatomic) UIImageView *playAduioImageView;
@property(strong, nonatomic) NSTimer *timer;
@property(assign, nonatomic) int timerIntvertal;
@property(strong, nonatomic) NSMutableArray *photos;
@property(strong,nonatomic) NSNumber *userId;
@property(copy,nonatomic) NSString *target_user_head_image_path;

@end
